From 0b5a4a2e105865375c7ddef12eafe8e5cad6dd85 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 21 Nov 2007 12:00:20 +0000 Subject: [PATCH] i386: Remove unnecessary, and broken, address check I added to seg fixup code. Oops. Signed-off-by: Keir Fraser --- xen/arch/x86/x86_32/seg_fixup.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/xen/arch/x86/x86_32/seg_fixup.c b/xen/arch/x86/x86_32/seg_fixup.c index fcee02aad8..6dec66f503 100644 --- a/xen/arch/x86/x86_32/seg_fixup.c +++ b/xen/arch/x86/x86_32/seg_fixup.c @@ -216,10 +216,6 @@ static int linearise_address(u16 seg, unsigned long off, unsigned long *linear) *linear = base + off; - /* Conservatively check 32 bytes from returned linear base. */ - if ( !access_ok(linear, 32) ) - return 0; - return 1; } -- 2.30.2